package com.lee.ssm.service;

import com.lee.ssm.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService   extends UserDetailsService{
    List<UserInfo> findAll() throws Exception;

    UserInfo findById(String id) throws Exception;

    void save(UserInfo userInfo) throws Exception;

    void addRoleToUser(String userId, String[] ids)throws Exception;
}
